pub mod shaders;
pub mod glutils;
pub mod transform;
pub mod mesh;
pub mod graphics;
pub mod camera;

pub use camera::*;
pub use glutils::*;

use std::ffi::c_void;

pub fn load<F>(get_proc_addr: F) where F: FnMut(&'static str) -> *const c_void {
    gl::load_with(get_proc_addr);

    unsafe {
        gl::Enable(gl::BLEND);
        gl::BlendFunc(gl::SRC_ALPHA, gl::ONE_MINUS_SRC_ALPHA);
    }
}